<script lang="ts">


</script>

<template>
  <nav class="navbar navbar-expand-lg navbar-light bg-white  left-0 right-0 flex-nowrap z-index-3">
    <div class="container">
      <a class="navbar-brand" href="/index"><img src="../assets/clogo.png"> CRYPTOMANOR</a>
      <ul class="nav-menu">
        <li class="nav-item">
          <router-link to="/index" class="nav-link" active-class="active">Home</router-link>
        </li>
        <li class="nav-item">
          <router-link to="/Products" class="nav-link" active-class="active">Products</router-link>
        </li>
        <li class="nav-item">
          <router-link to="/Resources" class="nav-link" active-class="active">Resources</router-link>
        </li>
        <li class="nav-item">
          <router-link to="/Company" class="nav-link" active-class="active">Company</router-link>
        </li>
        <li class="nav-item">
          <router-link to="/Connect" class="nav-link" active-class="active">Connect</router-link>
        </li>
        <li class="nav-item">
          <router-link to="/admin/index" class="nav-link" active-class="active">Admin</router-link>
        </li>
      </ul>
    </div>
  </nav>
</template>

<style scoped>
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #120e43, #120e43);
    /* 背景渐变 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    /* 确保导航栏在最上层 */
  }

  .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    /* 导航栏高度 */
  }

  .nav-item {
    position: relative;
  }

  .nav-item:nth-child(1) {
    /* margin-right: 25%; */
  }

  .nav-link {
    display: inline-block;
    padding: 0 20px;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
    /* 链接文字颜色 */
    font-weight: 600;
    /* 字体加粗 */
    line-height: 60px;
    /* 垂直居中 */
    transition: color 0.3s ease;
    /* 过渡效果 */
  }

  .nav-link:hover {
    color: #f5f5f5;
    /* 鼠标悬停时的文字颜色 */
  }

  .active {
    color: #ffa066;
    /* 激活状态的文字颜色 */
    border-bottom: 3px solid #ffa066;
    /* 激活状态的下划线 */
  }

  .logo {
    color: rgba(29, 33, 41, 1);
    font-size: 21.999999999999986px;
    font-weight: 700;
    font-family: 'Kalam-Bold';
    color: #fff;
  }

  .navbar-brand {
    color: #fff;
  }

  .navbar-brand img {
    width: 50px;
  }
</style>